package banner

import (
	"group-buy/group_buy/internal/logic/banner"
	"group-buy/group_buy/internal/svc"
	"group-buy/response"
	"net/http"
)

func ListBannerHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := banner.NewListBannerLogic(r.Context(), svcCtx)
		resp, err := l.ListBanner()

		response.Response(w, resp, err)
	}
}
